import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/home/index.vue'
import Taber from '@/components/Taber.vue'
const routes = [
  {
    path: '/',
    name: 'home',
    components:{
      default: HomeView,
      footer:Taber
    }
  },
  {
    path: '/fenlei',
    name: 'fenlei',
    components:{
      default: () => import('../views/fenlei/index.vue'),
      footer:Taber
    }
  },
  {
    path: '/my',
    name: 'my',
    components:{
      default: () => import('../views/my/index.vue'),
      footer:Taber
    }
  },
  {
    path: '/miquan',
    name: 'miquan',
    components:{
      default: () => import('../views/miquan/index.vue'),
      footer:Taber
    }
  },
  {
    path: '/shop',
    name: 'shop',
    components:{
      default: () => import('../views/shop/index.vue'),
      footer:Taber
    }
  },
  {
    path: '/sousuo',
    name: 'sousuo',
    components:{
      default: () => import('../views/sousuo/index.vue'),
    }
  },
  {
    path: '/list',
    name: 'list',
    components:{
      default: () => import('../views/home/list.vue'),
    }
  },
  {
    path: '/login',
    name: 'login',
    components:{
      default: () => import('../views/login/index.vue')
    }
  },
  {
    path: '/detail',
    name: 'detail',
    components:{
      default: () => import('../views/detail/index.vue')
    }
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
